﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Docking="clr-namespace:Monti.Docking">

   <Style TargetType="{x:Type Docking:DockManager}">
      <Setter Property="Template">
         <Setter.Value>
            <ControlTemplate TargetType="{x:Type Docking:DockManager}">
               <Border Background="{TemplateBinding Background}">
                  <Grid x:Name="PART_MainGrid">
                     <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                     </Grid.RowDefinitions>
                     <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                     </Grid.ColumnDefinitions>

                     <Docking:SplitPanel Grid.Column="1"
                                         Grid.Row="1">
                        <Docking:DockSite x:Name="PART_DocumentDockSite"
                                          Group="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Documents}" />
                     </Docking:SplitPanel>
                  </Grid>
               </Border>
            </ControlTemplate>
         </Setter.Value>
      </Setter>
   </Style>

</ResourceDictionary>
